<%@ page import="dex.micros_gdc.Resource" %>


<div class="fieldcontain ${hasErrors(bean: resourceInstance, field: 'employeeId', 'error')} required">
	<label for="employeeId">
		<g:message code="resource.employeeId.label" default="Employee ID" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="employeeId" maxlength="20" required="" value="${resourceInstance?.employeeId}" size="20"/>
</div>

<div class="fieldcontain ${hasErrors(bean: resourceInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="resource.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" maxlength="60" required="" value="${resourceInstance?.name}" size="50"/>
</div>

<div class="fieldcontain ${hasErrors(bean: resourceInstance, field: 'role', 'error')} required">
	<label for="role">
		<g:message code="resource.role.label" default="Role" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="role" from="${resourceInstance.constraints.role.inList}" required="" value="${resourceInstance?.role}" valueMessagePrefix="resource.role"/>
</div>

<div class="fieldcontain ${hasErrors(bean: resourceInstance, field: 'email', 'error')} required">
	<label for="email">
		<g:message code="resource.email.label" default="Email" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="email" name="email" maxlength="50" required="" value="${resourceInstance?.email}" size="50"/>
</div>

<div class="fieldcontain ${hasErrors(bean: resourceInstance, field: 'status', 'error')} required">
	<label for="role">
		<g:message code="resource.status.label" default="Status" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="status" from="${resourceInstance.constraints.status.inList}" required="" value="${resourceInstance?.status}" valueMessagePrefix="resource.status"/>
</div>

<div class="fieldcontain ${hasErrors(bean: resourceInstance, field: 'phoneNumber', 'error')}">
	<label for="phoneNumber">
		<g:message code="resource.phoneNumber.label" default="Phone Number" />
	</label>
	<g:textField name="phoneNumber" maxlength="20" value="${resourceInstance?.phoneNumber}" size="20"/>
</div>

